package com.woniuxy.cloud.areaassembly.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 周川雄
 * @since 2022-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_area")
@ApiModel(value="SysArea对象", description="")
public class SysArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区域主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "区域名称")
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty(value = "区域代码")
    @TableField("area_code")
    private String areaCode;

    @ApiModelProperty(value = "上级主键")
    @TableField("area_parent_id")
    private Integer areaParentId;

    @ApiModelProperty(value = "记录新增时间")
    @TableField("raw_add_time")
    private LocalDateTime rawAddTime;

    @ApiModelProperty(value = "记录更新时间")
    @TableField("raw_update_time")
    private LocalDateTime rawUpdateTime;

    @TableField("area_level")
    private Integer areaLevel;

    @ApiModelProperty(value = "是否启动，默认0没有启动 1启动")
    @TableField("is_initiation")
    private Integer isInitiation;


}
